package edu.sctu.practice.class01.zhangwang.assigns.assign03.question_01;

/**
 * Created by Z_W on 2015/10/22.
 */
public class Circle extends GeometricObject {
    public double areas = 0;
    public double perimeters = 0;
    public double R = 0;
    public final double PI = 3.14;

    public Circle(String color) {
        super(color);
    }

    public Circle(String color, double r) {
        super(color);
        R = r;
    }

    @Override
    public double fingArea() {
        areas = PI * R * R;
        return areas;
    }

    @Override
    public double findPerimeter() {
        perimeters = 2 * PI * R;
        return perimeters;
    }
}
